/**
 * Created by mkDark on 2018/3/20.
 */
var common = require('../../common');
var pool = require('../index');
var mysql = require('mysql');
var YjxBaseModel = require('./ItbBaseModel');
var CONFIG = require('../../config');


var ItbQaTmplModel = function (obj) {
    YjxBaseModel.call(this,obj);

  //`qa_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'QA id',
  //`qa_name` varchar(100) DEFAULT NULL COMMENT '模版名称（内部用）',
  //`title` varchar(100) DEFAULT NULL COMMENT '问卷调查名称',
  //`type` int(2) NOT NULL DEFAULT '0' COMMENT '0无(预留字段)',
  //`data` mediumtext COMMENT '模版内容（json字符串）',
  //`desc` varchar(100) DEFAULT NULL COMMENT '备注',
  //`publish` int(1) NOT NULL DEFAULT '0' COMMENT '0制作中; 1已完成',
  //`ver` int(10) NOT NULL DEFAULT '0' COMMENT '提纲结构版本号',
  //`create_time` datetime NOT NULL,
  //`update_time` datetime NOT NULL,
  //`update_by` varchar(50) NOT NULL DEFAULT '',
  //`del_flg` int(1) NOT NULL DEFAULT '0',
  //      PRIMARY KEY (`qa_id`)
  //  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='问卷调查QA模版表'

};

ItbQaTmplModel.prototype = new YjxBaseModel();

// 取得表名
ItbQaTmplModel.prototype.getTableName = function(){
    return 'itb_qa_tmpl';
};
// 取得查询语句中where 后面匹配主键的条件（需要各派生类进行重载）
ItbQaTmplModel.prototype.getWhereConditionOfKeyEqual = function(){
    return 'qa_id='+this.qa_id;
};





module.exports = ItbQaTmplModel;

